/**  
 * @Title: UserMapper.java  
 * @Package com.blog4java.mybatis.example.mapper  
 * @Description: TODO(用一句话描述该文件做什么)  
 * @author suyuhao  
 * @date 2025-05-27 11:49:56   
 */
package com.blog4java.mybatis.configuration.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import com.blog4java.mybatis.configuration.entity.UserEntity;


/**  
* @ClassName: UserMapper  
* @Description: 定义用于执行SQL的Mapper
* @author suyuhao  
* @date 2025-05-27 11:49:56
*/
public interface UserMapper {
    List<UserEntity> listAllUser();

    @Select("select * from user where id=#{userId,jdbcType=INTEGER}")
    UserEntity getUserById(@Param("userId") String userId);
    
    String selectTime();
}
